class TrafficStatWeek < ActiveRecord::Base
  belongs_to :terminal
  attr_accessible :flow, :week, :year, :key

  def start_date
    self.key.split('(')[1].split('-')[0]
  end

  def end_date
    self.key.split('(')[1].split('-')[1]
  end

end
